<?php
/**
 * Created by PhpStorm.
 * User: woody
 * Date: 17-2-16
 * Time: 下午10:46
 */

namespace App\Http\Controllers\Admin;

use App\Models\Dashboard;
class DashboardController extends AdminController {

    public function CountUsers(){
        $DashboardModel = new Dashboard();
        $data=$DashboardModel->CountUsers();
        return response()->json(['code' => 0, 'msg' => '', 'data' => $data ]);
    }

    public function CountPrize(){
        $DashboardModel = new Dashboard();
        $data=$DashboardModel->CountPrize();
        return response()->json(['code' => 0, 'msg' => '', 'data' => $data ]);
    }

    public function CountDay(){
        $DashboardModel = new Dashboard();
        $data=$DashboardModel->CountDay();
        return response()->json(['code' => 0, 'msg' => '', 'data' => $data ]);
    }

}